/** 
 * FileName:     OrderHistoryService.java 
 * @Description: TODO(用一句话描述该文件做什么) 
 * All rights Reserved, Designed By hnkeystone 
 * Copyright:    Copyright(C) 2010-2011 
 * Company       坚磐科技 
 * @author:    冯辉 
 * @version    V1.0  
 * Createdate:         2017-3-9 上午9:46:22 
 * 
 * Modification  History: 
 * Date         Author        Version        Discription 
 * ----------------------------------------------------------------------------------- 
 * 2017-3-9       hnkeystone.com          1.0             1.0 
 * Why & What is modified: <修改原因描述> 
 */
package com.fh.service.order;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fh.dao.DaoSupport;
import com.fh.util.PageData;

/**
 * @ClassName: OrderHistoryService
 * @Description:TODO(添加订单状态更改历史)
 * @author: 冯辉
 * @date: 2017-3-9 上午9:46:22
 * 
 */
@Service("orderHistoryService")
public class OrderHistoryService {
	@Resource(name = "daoSupport")
	private DaoSupport dao;
	/*
	 * 添加供应商订单状态更改记录
	 */
	public Integer addOrderStatus(PageData page) throws Exception {
		return (Integer) dao.save("ApporderHistoryMapper.saveHistroy", page);
	}
	/*
	 * 添加顾客订单状态更改记录
	 */
	public Integer addCustomerOrderStatus(PageData page) throws Exception {
		return (Integer) dao.save("ApporderHistoryMapper.saveCustomerHistory", page);
	}
	/*
	 * 获取订单状态更改记录
	 */
	public List<PageData> findOrderHistory(PageData page) throws Exception {
		return (List<PageData>) dao.findForList("ApporderHistoryMapper.findOrderHistory", page);
	}
}
